package com.siti.kindnessplatform.donate.ctrl;

import com.github.pagehelper.PageInfo;
import com.siti.kindnessplatform.donate.biz.DonateBiz;
import com.siti.kindnessplatform.donate.vo.DonateVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("donate")
public class DonateController {

    @Resource
    private DonateBiz donateBiz;

    @GetMapping(value = "getInfo")
    public PageInfo<DonateVo> getDonateInfo(Integer page, Integer pageSize) {
        return donateBiz.getDonateInfo(page, pageSize);
    }

}
